package com.ser01;

import javax.servlet.*;
import java.io.IOException;

public class ServletDemo2 implements Servlet {

    public ServletDemo2 () {
        System.out.println("ServletDemo2的构造方法");
    }

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("ServletDemo2...init初始化...");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("ServletDemo2...service执行方法...");
    }

    @Override
    public void destroy() {
        System.out.println("ServletDemo2...destroy销毁方法...");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public String getServletInfo() {
        return null;
    }
}
